package com.bit.demo.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bit.demo.mybatisplusdemo.model.UserInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;



@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Update("update user_info set age=age+#{age} ${ew.customSqlSegment}")
    Integer updateByCondition(Integer age,@Param("ew") UpdateWrapper<UserInfo> updateWrapper);
}
